﻿@model HelloMinasan.Web.Song.ViewModels.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}
<div style="width: 100%; display: table">
<h1 class="titleNewFont">
    <img src="~/Content/Images/user.png" />
    Update Account</h1>

@using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post))
{
    //@Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
    if (ViewBag.success != "")
    {
    <div id="success" style="margin-bottom: 5px; font-family: Arial,Verdana; font-size: 14px; color: blue;">@ViewBag.success</div>
    }
    <div class="dockPanelLeft">
        @Html.Partial("Navigation", 1)
    </div>
    <table class="inputForm contentSectionInside" style="width: 700px; float: right; margin-right: 10px;">
        <tbody>
            <tr>
                <td>
                    <div>
                        <fieldset>
                            <legend>Account Information</legend>

                            <div class="editor-label">
                                @Html.LabelFor(m => m.OldPassword)
                            </div>
                            <div class="editor-field">
                                @Html.PasswordFor(m => m.OldPassword)
                                @Html.ValidationMessageFor(m => m.OldPassword)
                            </div>

                            <div class="editor-label">
                                @Html.LabelFor(m => m.NewPassword)
                            </div>
                            <div class="editor-field">
                                @Html.PasswordFor(m => m.NewPassword, new { @class = "passwordClass" })
                                @Html.ValidationMessageFor(m => m.NewPassword)
                            </div>

                            <div class="editor-label">
                                @Html.LabelFor(m => m.ConfirmPassword)
                            </div>
                            <div class="editor-field">
                                @Html.PasswordFor(m => m.ConfirmPassword)
                                @Html.ValidationMessageFor(m => m.ConfirmPassword)
                            </div>
                            <p>
                                <input id="Save" name="Save" type="submit" value="Change Password" />
                            </p>
                        </fieldset>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
}
    </div>